package zl.ordermanager.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Tlog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tlog", catalog = "ordermanager")
public class Tlog implements java.io.Serializable {

	// Fields

	private Integer id;

	private String datetime;

	private String operate;

	private String username;

	// Constructors

	/** default constructor */
	public Tlog() {
	}

	/** full constructor */
	public Tlog(String datetime, String operate, String username) {
		this.datetime = datetime;
		this.operate = operate;
		this.username = username;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "datetime", nullable = false, length = 24)
	public String getDatetime() {
		return this.datetime;
	}

	public void setDatetime(String datetime) {
		this.datetime = datetime;
	}

	@Column(name = "operate", nullable = false)
	public String getOperate() {
		return this.operate;
	}

	public void setOperate(String operate) {
		this.operate = operate;
	}

	@Column(name = "username", nullable = false, length = 100)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

}